/*
 * Logger.java
 *
 * Created on 26 de mayo de 2006, 12:33
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.src.computec.radar.base.util;

/**
 *
 * @author root
 */
public abstract class Logger {    
    
    protected static Logger logger;

    protected Logger() {
    }

    public static void setSystemLogger(Logger systemLogger) {
        logger=systemLogger;
    }

    public static Logger getInstance() {
        if (logger==null) {
            logger = new DefaultIOLogger();
        }
        return logger;
    }
    
    public abstract void log(String message);
    
    public abstract void log(String message,Throwable exception);
}